package com.base.pig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjh
 * @since 2023-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Audit对象", description="")
public class Audit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型 新增、修改、删除")
    private String type;

    @ApiModelProperty(value = "类型 管线/管点")
    private String pipetype;

    @ApiModelProperty(value = "管线类别 要变更的是什么管线 ")
    private String dm;

    @ApiModelProperty(value = "关联id 修改删除时 传管线usid 新增时传新增表usid")
    private String rid;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "审批属性 审核通过 审核不通过")
    private String audit;

    @ApiModelProperty(value = "提交人")
    private String person;

    @ApiModelProperty(value = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applytime;

    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date audittime;

    @ApiModelProperty(value = "备注")
    private String mark;

    @ApiModelProperty(value = "审批意见")
    private String auditreason;



}
